package com.marvels.loanapply.api.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.marvels.loanapply.api.LoanapplyAttachAchieveApi;
import com.marvels.loanapply.dao.LaAttachmentDao;
import com.marvels.loanapply.dao.LaProtocolTemplateInfoDao;
import com.marvels.loanapply.dto.LaAttachAtmeTypeViewDTO;
import com.marvels.loanapply.dto.LaAttachmentDto;
import com.marvels.loanapply.dto.MclaProtocolTemplateInfoDTO;

@Service
public class LoanapplyAttachAchieveImpl implements LoanapplyAttachAchieveApi{
	@Autowired 
	LaProtocolTemplateInfoDao laProtocolTemplateInfoDao;
	@Autowired
	private LaAttachmentDao laAttachmentMapper;
	@Override
	public List<LaAttachmentDto>  achieveAttachInfo(String[] atmtType, String[] loanIds,String[] fileId) {
		List<LaAttachmentDto> list=laAttachmentMapper.selectByConditions(atmtType, loanIds,fileId);
		return list;
	}
	
	
	
	@Override
	public List<LaAttachmentDto> compactAttach(String[] fileId, String[] loanIds) {
		return laAttachmentMapper.compactAttach(fileId, loanIds);
	}


	@Override
	public List<LaAttachAtmeTypeViewDTO> getAttachAtmeTypeInfo(LaAttachAtmeTypeViewDTO laAttachAtmeTypeViewDTO) {
		return laAttachmentMapper.selectAttachAtmeTypeInfo(laAttachAtmeTypeViewDTO);
	}



	@Override
	public MclaProtocolTemplateInfoDTO selectMclaProtocolTemplateInfo(String templateNo) {
		return laProtocolTemplateInfoDao.selectMclaProtocolTemplateInfo(templateNo);
	}

}
